package com.realgodo.site.entity.site;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.realgodo.site.entity.IdEntity;

@Table(name = "advertisement")
@Entity(name = "Advertisement")
public class Advertisement extends IdEntity {
	private static final long serialVersionUID = -1426700963086746444L;

	private String bannerTitle;

	private String content;

	private String code;

	@Column(name = "banner_title")
	public String getBannerTitle() {
		return bannerTitle;
	}

	public void setBannerTitle(String bannerTitle) {
		this.bannerTitle = bannerTitle;
	}

	@Lob
	@Basic(fetch = FetchType.LAZY)
	@Column(name = "content")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "code")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
